package com.jk.customer.service;

import com.jk.customer.entity.MaterialsEntity;
import com.jk.customer.entity.PictureEntity;
import com.jk.customer.entity.PictureFile;
import com.jk.customer.entity.ProductEntity;

import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.List;

public interface PurchaseService {

    List<ProductEntity> getPicture(ProductEntity product,HttpServletRequest request) throws ParseException;

    void addPicture_cyt(ProductEntity product, HttpServletRequest request);

    void addPicturefindImg_cyt(PictureEntity picture, HttpServletRequest request);

    void delById_cyt(String productId);

    void cancelById_cyt(String productId);

    void toInitiatePicture_cyt(String productId);

    ProductEntity selById_cyt(String productId);

    PictureEntity selByPictureId_cyt(String productId);

    void addmaterials_cyt(MaterialsEntity materialsEntity,HttpServletRequest request);

    PictureEntity selYanQiById(String productId);

    List<MaterialsEntity> getuserByTypeOne(String id);

    void updateYanQi(ProductEntity product);

    List<PictureFile> findImgData_cyt(String productId);

    List<ProductEntity> findMaterials_cyt(String commonId, String userRealName);

    void confirmFindImg_cyt(String queryPictureId,String userId,String commonId);

    List<ProductEntity> findParticularsData(String productId);

    List<MaterialsEntity> findBillOfMaterialsData(HttpServletRequest request);

    List<ProductEntity> findTotalPages(HttpServletRequest request);

    List<ProductEntity> total_materials();
}